package org.locker.domain.bo;

import org.locker.domain.PaySplit;
import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 微信分账业务对象 lk_pay_split
 *
 * @author winnie
 * @date 2024-01-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PaySplit.class, reverseConvertGenerate = false)
public class PaySplitBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long paySplitId;

    /**
     * 场地ID
     */
    @NotNull(message = "场地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long positionId;

    /**
     * 管理员ID
     */
    @NotNull(message = "管理员ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long managerId;

    /**
     * openId
     */
    @NotBlank(message = "openId不能为空", groups = { AddGroup.class, EditGroup.class })
    private String openid;

    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderNo;

    /**
     * 流水号
     */
    @NotBlank(message = "流水号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transactionNo;

    /**
     * 分账单号
     */
    @NotBlank(message = "分账单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String outOrderNo;

    /**
     * 分账描述
     */
    @NotBlank(message = "分账描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 订单金额
     */
    @NotNull(message = "订单金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal orderAmount;

    /**
     * 分账金额
     */
    @NotNull(message = "分账金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal splitAmount;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String state;


    /**
     * 分账单号
     */
    private String spiltTransactionNo;
}
